#pragma once
#include "CSprite.h"

#define WINDOW_WIDTH 800
#define WINDOW_HEIGHT 600

class Object
{
protected:
	static unsigned int m_nCountObj;
public:
	Object();
	~Object();

	CSprite* m_Sprite;
	bool m_checkDie;
	bool m_brelease;
	bool m_bcheckDie;
	
	RECT *m_ObRect;
	int m_nAndr; //position on map
	int m_nId;

	int m_nposX; //position on screen
	int m_nposY;

	float m_fverX;	//x and y VERLOCITY_X_RUN of the character
	float m_fverY;

	DWORD m_dwlastUpdate;

	virtual void loadSprite(LPD3DXSPRITE);
	virtual void render();
	virtual void next();
	virtual void update(int DeltaTime, int moveCame);
	virtual void die(){}
};